<include file="Public/min-header"/>
<div class="wrapper">
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
    
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 批量修改价格</h3>
                </div>
                <div class="panel-body">
                    <!--表单数据-->

                    <div class="navbar navbar-default">
                        <form action="" id="search-form2" class="navbar-form form-inline" method="post" onsubmit="return false">
                            <div class="form-group">
                                <select name="store_cat_id1" id="store_cat_id1" class="form-control">
                                    <option value="">本店分类</option>
                                    <foreach name="store_goods_class_list" item="v" key="k" >
                                        <option value="{$v['cat_id']}"> {$v['cat_name']}</option>
                                    </foreach>
                                </select>
                            </div>
                            <div class="form-group">
                                <select name="is_on_sale" id="is_on_sale" class="form-control">
                                    <option value="">全部</option>
                                    <option value="1">上架</option>
                                    <option value="0">下架</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <select name="intro" class="form-control">
                                    <option value="0">全部</option>
                                    <option value="is_new">新品</option>
                                    <option value="is_recommend">推荐</option>
                                </select>
                            </div>

                            <div class="form-group">
                                <label class="control-label" for="input-order-id">关键词</label>
                                <div class="input-group">
                                    <input type="text" name="key_word" value="" placeholder="搜索词" id="input-order-id" class="form-control">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="control-label" for="input-order-id">标签</label>
                                <div class="input-group">
                                    <input type="text" name="label" value="" placeholder="标签"  class="form-control">
                                </div>
                            </div>
                            <!--排序规则-->
                            <input type="hidden" name="orderby1" value="goods_id" />
                            <input type="hidden" name="is_delete" value="0" />
                            <input type="hidden" name="goods_state" value="{$_GET['goods_state']}" />
                            <input type="hidden" name="orderby2" value="desc" />
                            <button type="submit" onclick="ajax_get_table('search-form2',1)" id="button-filter search-order" class="btn btn-primary"><i class="fa fa-search"></i> 筛选</button>
                        </form>
                    </div>

                    <div id="ajax_return"> </div>
                </div>
            </div>
        </div>    <!-- /.content -->
    </section>
</div>
<script>

    var p = "{$p}"
    $(document).ready(function(){
        // ajax 加载商品列表
        ajax_get_table('search-form2',p);

    });


    // ajax 抓取页面 form 为表单id  page 为当前第几页
    function ajax_get_table(form,page){
        cur_page = page; //当前页面 保存为全局变量
        $.ajax({
            type : "POST",
            url:"/index.php?m=Seller&c=goods&a=ajaxGoodsEditList&p="+page,//+tab,
            data : $('#'+form).serialize(),// 你的formid
            success: function(data){
                $("#ajax_return").html('');
                $("#ajax_return").append(data);
            }
        });
    }

</script>
</body>
</html>